<?php
namespace Model;



use Core\Config;
use Core\Constant;

class Address extends AbstractModel
{
    public $id;
    public $district_id;
    public $province_id;
    public $country_id;
    public $detail;
    public $detail_en;
    public $long;
    public $lat;

    public function getDetail($lang){
        return $lang==Config::getDefaultLanguage()? $this->detail:$this->detail_en;
    }

    public function getFullAddress($lang){
        return $this->getDetail($lang);
    }

}
